package com.haoe.mapper;

import com.haoe.entity.OrderDish;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 80305082
 * @Date: 2021/3/12
 * @Description:
 */
@Repository
public interface OrderDishMapper {

    List<OrderDish> selectByOrderId(@Param("orderId") Long orderId);

    int saveOrderDish(@Param("orderDish") OrderDish orderDish);

    int deleteByOrderId(@Param("orderId") Long orderId);

    int batchSave(@Param("dishes") List<OrderDish> dishes);
}
